import os

os.system("wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -")

os.system("sudo add-apt-repository 'deb https://typora.io/linux ./'")

os.system("sudo apt-get update")

os.system("sudo apt-get install typora")